package com.wt.springsamples.aop;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Scope;

@EnableAspectJAutoProxy
@Configuration
public class AopConfig {

    @Bean
    @Scope("prototype")
    public AopService aopService(){
        return  new AopService();
    }

    @Bean
    public  UserLogAspect userLogAspect(){
        return  new UserLogAspect();
    }
}
